import {Component} from 'react'
import './App.css'
import Main from "./pages/main/Main.tsx";
import {BrowserRouter, Route, Routes} from "react-router-dom";
import LoveNest from "./pages/loveNest/index/LoveNest.tsx";
import Home from "./pages/loveNest/Home/Home.tsx";
import My from "./pages/loveNest/My/My.tsx";

interface AppState {

}

class App extends Component<{}, AppState>{
    constructor(props: {}) {
        super(props);
        this.state = {

        }
    }

    render() {
        return (
            <>
                <BrowserRouter>
                    <Routes>
                        <Route path="/" element={<Main />} />
                        <Route path="/loveNest" element={<LoveNest />}>
                            <Route path="home" element={<Home />} />
                            <Route path="my" element={<My />} />
                        </Route>
                    </Routes>
                </BrowserRouter>

            </>
        )
    }
}

export default App;
